package cn.edu.ecut;

public class Student {
	
	public String name ;      // public : 任意
	protected int number ; // protected : 本类、本包、子类
	int age ; 						// package-private : 本类、本包
	private String head ;	 // private : 本类
	
	public void show() {
		System.out.println( "name : " + this.name + " , number : " + this.number + " , age : " + this.age + " , head : " + this.head );
	}
	
	public static void main( String[] args ) {
		
		Student s = new Student();
		s.name = "张无忌" ;
		s.number = 20201234;
		s.age = 18 ;
		s.head = "无忌的头" ;
		
		s.show();
		
	}

}
